import Vue from 'vue'
import Router from 'vue-router'
// import Hello from '@/components/Hello'
//这里存放的是我们引用的组件
// import Test from '@/components/test.vue'
import home from '../components/Home.vue'
import movie from '../components/movie/movie.vue'
import news from '../components/news/news.vue'
import books from '../components/books/books.vue'
import music from '../components/music/music.vue'

Vue.use(Router)
//这里是路由跳转路径
export default new Router({
  routes: [
    // {path: '/', name: 'Test', component: Test},
    {path:'/',redirect:'/Home'},
    {path:'/Home',component:home},
    {path:'/movie',component:movie},
    {path:'/news',component:news},
    {path:'/books',component:books},
    {path:'/music',component:music}
  ]
})
